package com.tsd.core.openweixin.model.custommsg;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 文本客服消息
 *
 * @author Administrator
 */
public class CustomMsgNews extends CustomMsg implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 2333750494305573542L;
    News news;


    public CustomMsgNews() {
        this.setMsgtype(TypeNews);
        news = new News();
    }

    public News getNews() {
        return news;
    }

    public void setNews(News news) {
        this.news = news;
    }

    public static class Article {
        String title;
        String description;
        String url;
        String picurl;

        public Article() {

        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getPicurl() {
            return picurl;
        }

        public void setPicurl(String picurl) {
            this.picurl = picurl;
        }
    }

    public class News {
        List<Article> articles;

        public News() {
            articles = new ArrayList<Article>();
        }

        public List<Article> getArticles() {
            return articles;
        }

        public void setArticles(List<Article> articles) {
            this.articles = articles;
        }

    }
}
